home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / answers / comp / sgi / faq / graphics < prev    next >
Encoding:
Internet Message Format  |  1994-04-07  |  61.9 KB

  1. Path: bloom-beacon.mit.edu!news.media.mit.edu!uhog.mit.edu!europa.eng.gtefsd.com!howland.reston.ans.net!cs.utexas.edu!news.tamu.edu!sgi-faq
  2. From: sgi-faq@viz.tamu.edu (The SGI FAQ group)
  3. Newsgroups: comp.sys.sgi.misc,comp.answers,news.answers
  4. Subject: SGI graphics Frequently Asked Questions (FAQ)
  5. Supersedes: <graphics_764182743@viz.tamu.edu>
  6. Followup-To: comp.sys.sgi.misc
  7. Date: 6 Apr 1994 20:11:56 GMT
  8. Organization: Visualization Lab, Texas A&M University
  9. Lines: 1660
  10. Approved: news-answers-request@mit.edu
  11. Expires: 4 May 1994 20:11:14 GMT
  12. Message-ID: <graphics_765663074@viz.tamu.edu>
  13. Reply-To: sgi-faq@viz.tamu.edu (The SGI FAQ group)
  14. NNTP-Posting-Host: viz.tamu.edu
  15. Originator: sgi-faq@viz
  16. Xref: bloom-beacon.mit.edu comp.sys.sgi.misc:9367 comp.answers:4794 news.answers:17744
  17.  
  18. Archive-name: sgi/faq/graphics
  19. Last-modified: Wed Mar  9 16:12:38 CST 1994
  20.  
  21.     SGI graphics Frequently Asked Questions (FAQ)
  22.  
  23. This is one of the Silicon Graphics FAQ series, which consists of:
  24.  
  25.     SGI admin FAQ - IRIX system administration
  26.     SGI apps FAQ - Applications & compilers
  27.     SGI graphics FAQ - Graphics and user environment customization
  28.     SGI hardware FAQ - Hardware
  29.     SGI misc FAQ - Introduction & miscellaneous information
  30.     SGI performer FAQ - IRIS Performer
  31.     SGI pointer FAQ - Pointer to the other FAQs
  32.  
  33. Read the misc FAQ for information about the FAQs themselves.  Each FAQ
  34. is posted to comp.sys.sgi.misc and to the news.answers and comp.answers
  35. newsgroups (whose purpose is to store FAQs) twice per month.  If you
  36. can't find one of the FAQs with your news program, you can get it by
  37. anonymous FTP from one of these sites:
  38.  
  39.     rtfm.mit.edu:/pub/usenet/comp.sys.sgi.misc/
  40.     rtfm.mit.edu:/pub/usenet/news.answers/sgi/faq/
  41.     rtfm.mit.edu:/pub/usenet/comp.answers/sgi/faq/
  42.     viz.tamu.edu:/pub/sgi/faq/
  43.  
  44. Note that rtfm.mit.edu is home to many other FAQs and informational
  45. documents, and is a good place to look if you can't find an answer
  46. here. If you can't use FTP, send mail to mail-server@rtfm.mit.edu with
  47. the command 'send usenet/news.answers/ftp-list/faq' on a line by itself
  48. in the text, and it will send you a document describing how to FTP by
  49. mail. You can also read a hypertext version of the FAQs at
  50.  
  51.     http://www.cis.ohio-state.edu/hypertext/faq/usenet/sgi/top.html
  52.  
  53. The SGI FAQs are freely distributable and wide circulation is encouraged.
  54. The contents are accurate as far as we know, but the usual disclaimers
  55. apply. Please send additions and changes to sgi-faq@viz.tamu.edu.
  56.  
  57. Topics covered in this FAQ:
  58. ---------------------------
  59.    -1- What books about the X Window System and OSF/Motif do you
  60.        recommend?
  61.    -2- Sun XView applications like "mailtool" hang my X server in 4.0.5.
  62.        They come up fine, but as soon as I click on them the server
  63.        freezes.
  64.    -3- Why am I getting DGL errors when I try to display a GL program?
  65.    -4- After running a few programs, the colors change as the cursor
  66.        moves. The colors are usually all wrong in other windows.
  67.    -5- How can I change my X Server to use a 12-bit PseudoColor, 12-bit
  68.        TrueColor, or 24-bit TrueColor visual by default?
  69.    -6- Why doesn't my X server use backing store? How can I turn it on?
  70.    -7- The library /usr/lib/libgl_s.a isn't on my R4000 Indigo. Where is
  71.        it?
  72.    -8- How do I run a program on one machine and display it on another?
  73.    -9- Does the DISPLAY environment variable work for GL applications?
  74.   -10- The DISPLAY variable doesn't seem to work.  Why?
  75.   -11- Can I save my screen layout?
  76.   -12- Sometimes an extra 4Dwm is running, using a lot of the CPU.  Is
  77.        this necessary?
  78.   -13- I'm running IRIX 4.0.1, and can't log in correctly. After logging
  79.        in the screen turns blue then goes back to Pandora.
  80.   -14- How do I run 'xinit' manually, (not automatically from 'xdm')?
  81.   -15- How do I start X on a remote host with no users logged in?
  82.   -16- What do the errors in my 'xdm-errors' file mean?
  83.   -17- How do I log into pandora without bringing up graphics?
  84.   -18- How do I start and stop the graphics system?
  85.   -19- How can I kill the X server without logging in or rebooting?
  86.   -20- Pandora won't come up, and /usr/adm/SYSLOG says "helvetica font
  87.        missing"
  88.   -21- How do I restart the console?
  89.   -22- What are resources?
  90.   -23- How do I set resources?
  91.   -24- How do I know what resources I can set for an application?
  92.   -25- How do I run the same program twice with different attributes?
  93.   -26- Does the GL recognize resources?
  94.   -27- How can I emulate a Meta key using xwsh?
  95.   -28- How do I find out what fonts are available?
  96.   -29- Does SGI provide any tools to help with the customization
  97.        process?
  98.   -30- What is a good approach to take in looking for resources?
  99.   -31- What is the precedence for resource files?
  100.   -32- What files affect the window manager and what is their
  101.        relationship to each other?
  102.   -33- Do I need my own .4Dwmrc file?
  103.   -34- Can I run different window managers?
  104.   -35- How do I choose a different window manager as the default?
  105.   -36- Where can I learn more about the Window Manager behavior?
  106.   -37- How do I recover from a failed window manager customization
  107.        attempt?
  108.   -38- What is the difference between .xsession and .sgisession?
  109.   -39- After copying /usr/lib/X11/xdm/Xsession to .xsession, I can't log
  110.        in.
  111.   -40- What are the important login and resource files for IRIX 4D1-4.0?
  112.   -41- What is the sequence of events that occur at login time?
  113.   -42- Why do 4Dwm, toolchest, Workspace, etc. not recognize an
  114.        environment variable I set in my shell's startup files?
  115.   -43- Why doesn't the window manager's "Log Out" routine work?
  116.   -44- Where is the default value of PATH set?
  117.   -45- How can I convert RGB bitmaps to & from other formats?
  118.   -46- Can I compress RGB bitmaps?
  119.   -47- How do I make a screen dump?
  120.   -48- Can I use 4Dgifts code in my application?
  121.   -49- What does ERR_WMANIPC mean?
  122.   -50- How can I translate screen (x,y) coords into world (x,y,z)
  123.        coords?
  124.   -51- How can I translate world (x,y,z) coords into screen (x,y)
  125.        coords?
  126.   -52- I call mapcolor(index, R, G, B) but nothing happens.  Why?
  127.   -53- What's wrong with blink()?
  128.   -54- When I try to run UIM/X uxserverd, I get an error message saying,
  129.        "license file has been modified, cannot start the UIM/X license
  130.        server".
  131.   -55- What is a GL widget?
  132.   -56- I'm using the GlxMDraw widget and it doesn't seem that colors are
  133.        being installed correctly.  Overlays in the GlxMDraw widget are
  134.        displayed in red and gray instead of the colors I specify.  What
  135.        is the problem?
  136.   -57- I get a "Broken Pipe" error when I close the window of an X
  137.        client, such as xman or xterm.  What does this error mean?  Is
  138.        there something wrong with my system?
  139.   -58- Is there a way to switch on the fly between single and double
  140.        buffering within a GL widget?
  141.   -59- Why doesn't SGI's xlock lock my screen?
  142.   -60- What about Inventor?
  143.   -61- Why do I get compilation errors when compiling the Inventor C++
  144.        examples, using C++ 3.0?
  145.   -62- Why does the X server sometimes abort when I log out in IRIX
  146.        5.0.1 and IRIX 5.1?
  147.  
  148. ----------------------------------------------------------------------
  149.  
  150. Subject:    -1- What books about the X Window System and OSF/Motif do
  151.                 you recommend?
  152. Date: 07 May 93 00:00:01 EST
  153.  
  154. Introductory Texts on the X Window System
  155.  
  156. - O'Reilly and Associates Inc., "The Definitive Guides to the X Window
  157.   System", by Valerie Quercia and Tim O'Reilly. Vol.  3, "X Window
  158.   System User's Guide", Sebastopol, CA., 1988, 1989.
  159.  
  160.   Discusses being an end user of the X window system.  Covers topics
  161.   like window manages, font specifications, standard X clients and
  162.   resources.
  163.  
  164. Texts on X Window System Programming
  165.  
  166. - O'Reilly and Associates, Inc. "The Definitive Guides to the X Window
  167.   System", by Adrian Nye. Vol. 1, "Xlib Programming Manual",
  168.   Sebastopol, CA, 1990.
  169.  
  170.   Contains the introductory elements for programming with the Xlib, the
  171.   lowest level of the X window system.  Discusses concepts such as X
  172.   color capacities, windows, events, drawing primitives.
  173.  
  174. - Young, Douglas A., "X Window Systems Programming and Applications
  175.   wit Edition). Prentice Hall. Englewood Cliffs, NJ.
  176.   1990.
  177.  
  178.   A thorough book starting with the basics of programming with a
  179.   toolkit though advanced topics.  Contains source code for several
  180.   small complete applications.  (Source code for this book is also
  181.   available on line in the /usr/src directory of the Motif Development
  182.   option.)
  183.  
  184. - O'Reilly and Associates Inc., "The Definitive Guides to the X Window
  185.   System", by Adrian Nye and Tim O'Reilly. Vol. 4, "X Toolkit
  186.   Intrinsics Programming Manual", Sebastopol, CA., 1990.
  187.  
  188.   Another reference for programming with the OSF/Motif toolkit.  Covers
  189.   topics including basic programming, widgets, resources, and more
  190.   advanced topics.
  191.  
  192. Reference Texts for the X Window System :
  193.  
  194. - O'Reilly and Associates Inc., "The Definitive Guides to the X Window
  195.   System", by Adrian Nye. Vol. 2, "Xlib Reference Manual", Sebastopol,
  196.   CA., 1988.
  197.  
  198.   Complete reference for Xlib library routines.
  199.  
  200. - Scheifler, Robert and James Gettys, X Window System, Second Edition,
  201.   Digital Press, 1990.  ISBN 1-55558-050-5.
  202.  
  203.   Referred to as "the Bible" of Xlib and X Protocol reference.
  204.  
  205. Reference Texts for the OSF/Motif Toolkit :
  206.  
  207. - Open Software Foundation, "OSF/Motif Programmer's Guide". Release
  208.   1.1, Prentice Hall. Englewood Cliffs, NJ. 1990.
  209.  
  210.   Exhaustive reference of every widget in the OSF/Motif library.
  211.  
  212. - Asente, Paul J. and Ralph R. Swick. "X Window System Toolkit".
  213.   X Version 11, Release 4. Digital Press. 1990.
  214.  
  215.   Very in-depth reference to the structure and operation of
  216.   an X window system toolkit.
  217.  
  218. ------------------------------
  219.  
  220. Subject:    -2- Sun XView applications like "mailtool" hang my X server
  221.                 in 4.0.5.  They come up fine, but as soon as I click on
  222.                 them the server freezes.
  223. Date: 07 May 93 00:00:01 EST
  224.  
  225. Any XView application run under the Xsgi X11-server shipped in
  226. IRIX versions 4.0.5A through 4.0.5G will lock the X Server on 
  227. the first mouse click and will not release it until killed from 
  228. somewhere else.  Fortunately there is a workaround:
  229.  
  230. a) Run the application with '-Wfsdb' on the command line.
  231.    Alternatively you could use '-fullscreendebug'.  For example:
  232.  
  233.    % mailtool -Wfsdb
  234.  
  235. b) If you have the sources, add
  236.  
  237.      extern int fullscreendebug;
  238.  
  239.    before main() and
  240.  
  241.      fullscreendebug = 1;
  242.  
  243.    after the xv_init() call.  This forces the program to set this flag
  244.    in any case - even when run with non-SGI X servers.  It releases you
  245.    of the danger of omitting -Wfsdb and locking your screen.
  246.  
  247. c) if the program uses the 'fullscreen' package, you might add
  248.  
  249.        Fullscreen.Debug: True
  250.  
  251.    in $HOME/.Xresources or specify this resource on the command line.
  252.    This flag currently disables grabs in both the 'window' and the
  253.    'fullscreen' package, but is only set from resources in the
  254.    'fullscreen' package.
  255.  
  256. ------------------------------
  257.  
  258. Subject:    -3- Why am I getting DGL errors when I try to display a GL
  259.                 program?
  260. Date: 20 Feb 94 00:00:01 EST
  261.  
  262. - You may be trying to display on a non-SGI machine which doesn't have
  263.   GL/DGL. (Most don't, yet.) Presently the only way around this is to
  264.   buy a third-party GL emulator for the non-SGI machine.
  265.  
  266. - DGL may be disabled in /etc/services and/or /usr/etc/inetd.conf
  267.   (/etc/inetd.conf in IRIX 5.x). The former file should have a line
  268.   reading
  269.  
  270.     sgi-dgl         5232/tcp
  271.  
  272.   and the latter should have a line reading
  273.  
  274.     sgi-dgl stream  tcp   nowait  root   /usr/etc/dgld  dgld -IM -tDGLTSOCKET
  275.  
  276.   If either is commented out, remove the comment.
  277.  
  278. - You may be trying to display on a machine with a much older version
  279.   of IRIX. Try another machine with a newer IRIX.
  280.  
  281. - You may have set the DISPLAY enviroment variable incorrectly.
  282.  
  283. - The machine on which you're displaying may have disallowed access.
  284.   Do 'xhost +yourmachine' to give 'yourmachine' access to the display.
  285.  
  286. An article in the Jan/Feb 93 Pipeline describes the above in great
  287. detail.
  288.  
  289. ------------------------------
  290.  
  291. Subject:    -4- After running a few programs, the colors change as the
  292.                 cursor moves. The colors are usually all wrong in other
  293.                 windows.
  294. Date: 07 May 93 00:00:01 EST
  295.  
  296. This is known as colormap flashing. It is caused by the server
  297. maintaining 2 separate colormaps, one for GL windows and one for X
  298. windows.  As the cursor moves around, the window manager will install
  299. the correct colormap for each window.  This will cause colors to be
  300. wrong in other windows.  For more information on colormaps and
  301. installation please see the Xlib Programming manual, chapter 7 (Vol I
  302. of the O'Reilly series).
  303.  
  304. You can sometimes avoid colormap flashing by configuring your X Server
  305. to use a 12-bit or 24-bit visual by default.
  306.  
  307. ------------------------------
  308.  
  309. Subject:    -5- How can I change my X Server to use a 12-bit
  310.                 PseudoColor, 12-bit TrueColor, or 24-bit TrueColor
  311.                 visual by default?
  312. Date: 07 May 93 00:00:01 EST
  313.  
  314. By default, the SGI X Server is configured to use an 8-bit PseudoColor
  315. visual.  X-based applications can request other visuals directly if
  316. they are available.  Alternatively, you can change the default visual
  317. by performing the following steps:
  318.  
  319. a) Run "/usr/bin/X11/xdpyinfo" and check that your server is
  320.    capable of using a 12-bit or 24-bit visual.  If it is,
  321.    you will see lines similar to the following:
  322.  
  323.    visual id, max buffers, depth:    0x28, 0, 12
  324.    visual id, max buffers, depth:    0x29, 0, 12
  325.    visual id, max buffers, depth:    0x2a, 0, 24
  326.  
  327.    The last number on each line represents the number of
  328.    bits available for that visual.
  329.     
  330. b) Log in as root
  331.  
  332. c) Edit the file /usr/lib/X11/xdm/Xservers.  By default it
  333.    will contain the string:
  334.      :0 secure /usr/bin/X11/X -bs -c -pseudomap 4sight
  335.    for a 24-bit TrueColor visual change it to:
  336.      :0 secure /usr/bin/X11/X -bs -c -class TrueColor -depth 24
  337.    for a 12-bit PseudoColor visual change it to:
  338.      :0 secure /usr/bin/X11/X -bs -c -class PseudoColor -depth 12
  339.  
  340. d) Restart your X server.  You can do this by invoking either
  341.    of the following commands:
  342.  
  343.    % killall -TERM Xsgi
  344.  
  345.    % /usr/gfx/stopgfx; /usr/gfx/startgfx
  346.  
  347. Note:  X Server visuals are an advanced topic; before making the above
  348. changes you should be aware that some 3rd-party and freeware
  349. applications might not gracefully adapt to an X Server which supplies
  350. anything but an 8-bit PseudoColor visual by default.
  351.  
  352. ------------------------------
  353.  
  354. Subject:    -6- Why doesn't my X server use backing store? How can I
  355.                 turn it on?
  356. Date: 12 Feb 94 00:00:01 EST
  357.  
  358. Mark Kilgard of SGI <mjk@hoot.asd.sgi.com> writes,
  359. SGI ships its X server with backing store disabled.  If you edit
  360. /usr/lib/X11/xdm/Xservers and remove the -bs option, then restart the X
  361. server, backing store will be available.
  362.  
  363. The reason for not turning on backing store by default is two-fold.
  364.  
  365. 1) In IRIX 4.0.X the code for managing overlay planes didn't properly
  366.    take overlays into account so backing store doesn't work if you have
  367.    overlay windows on the screen. This is fixed n IRIX 5.x.
  368.  
  369. 2) In most cases, backing store hurts your performance.  It cases ALL X
  370.    rendering operations to make an extra (small) traversal through
  371.    backing store code even if backing store isn't in use.  Also when
  372.    backing store is in use, it tends to grow the X server since a large
  373.    amount of memory can easily be used to maintain backing store.
  374.  
  375. One alternative to backing store is to render your image to a pixmap
  376. and then blit from the pixmap to the screen in response to expose
  377. events.  This will stress the X server a great deal less than using
  378. backing store.  Additionally, make sure you are compressing expose
  379. events when you redraw.
  380.  
  381. ------------------------------
  382.  
  383. Subject:    -7- The library /usr/lib/libgl_s.a isn't on my R4000 Indigo.
  384.                 Where is it?
  385. Date: 07 May 93 00:00:01 EST
  386.  
  387. It's in the "maint" software, in the maint_gl_x_dev package.
  388.  
  389. ------------------------------
  390.  
  391. Subject:    -8- How do I run a program on one machine and display it on
  392.                 another?
  393. Date: 07 May 93 00:00:01 EST
  394.  
  395. Use the DISPLAY environment variable to specify the remote host on
  396. whdisplayed; then invoke the
  397. appplication.
  398.  
  399. To specify the remote host,
  400.  
  401.   setenv DISPLAY <destination>:0
  402.  
  403. where <destination> is the name or IP address of the remote host.
  404. To specify the local host (console),
  405.  
  406.   setenv DISPLAY :0
  407.  
  408. ------------------------------
  409.  
  410. Subject:    -9- Does the DISPLAY environment variable work for GL
  411.                 applications?
  412. Date: 07 May 93 00:00:01 EST
  413.  
  414. Yes.  Iris GL programs display on the machine specified by the DISPLAY
  415. environment variable.  This occurs because the GL now uses the
  416. Distributed Graphics Library (DGL) capabilities by default.  It is
  417. important to remember that only Silicon Graphics' machines can display
  418. GL.  For networks running NIS (formerly yellow pages), it is sometimes
  419. necessary to add the flag "-lsun" when compiling.
  420.  
  421. ------------------------------
  422.  
  423. Subject:   -10- The DISPLAY variable doesn't seem to work.  Why?
  424. Date: 07 May 93 00:00:01 EST
  425.  
  426. There are several possibilities.  First, check your DISPLAY variable to
  427. make sure it is syntactically correct.  For example, to display
  428. applications on a machine named "enterprise" whose IP address is
  429. 123.45.678.90, it should be set to "enterprise:0" or
  430. "123.45.678.90:0".
  431.  
  432. Also, try to "ping" the machine to which your DISPLAY variable is set.
  433. If this does not work, you have either specified an invalid hostname,
  434. the host is down, or you are having network problems.
  435.  
  436. Sometimes, when trying to display to a remote server, you see messages
  437. like "permission denied" or "can't connect to server".  To solve
  438. permission problems, you need to disable access control on the remote
  439. server using the xhost command.  By default, access control is disabled
  440. on Silicon Graphics' machines.
  441.  
  442. For more information see Chapter 3 of the X Window System User's Guide,
  443. (Vol. 3 of the O'Reilly series)
  444.  
  445. If NIS is used, make sure the client is linked with "-lsun".
  446.  
  447. ------------------------------
  448.  
  449. Subject:   -11- Can I save my screen layout?
  450. Date: 07 May 93 00:00:01 EST
  451.  
  452. Not very easily.  You must run "xwininfo" to find the X and Y position
  453. of each window, then use that information to customize your .sgisession
  454. or .xsession files.
  455.  
  456. For more information see Chapter 3 of the X Window System User's Guide,
  457. (Vol. 3 of the O'Reilly series)
  458.  
  459. There are two tools that may help: 'xtoolplaces', which was posted to
  460. volume 14 of comp.sources.x
  461. (ftp.uu.net:/usenet/comp.sources.x/volume14/xtoolplaces/), and David
  462. Hinds' 'xscript', which is at cb-iris.stanford.edu:/pub/.
  463.  
  464. ------------------------------
  465.  
  466. Subject:   -12- Sometimes an extra 4Dwm is running, using a lot of the
  467.                 CPU.  Is this necessary?
  468. Date: 07 May 93 00:00:01 EST
  469.  
  470. No, there should only be one.  This multiple window manager problem
  471. usually is triggered by the "kill" feedback of the window manager when
  472. a user logs out.  The workaround for the problem is to remove the
  473. "kill" feedback.
  474.  
  475. The "kill" feedback is controlled by the resource "showFeedback."  For
  476. 4Dwm, this resource is defined in /usr/lib/X11/app-defaults/4DWm as:
  477.  
  478.   *showFeedback:       behavior restart quit kill
  479.  
  480. Modify the resource to read:
  481.  
  482.   *showFeedback:       behavior restart quit
  483.  
  484. For mwm, set a "showFeedback" resource that does not include the "kill"
  485. feedback in /usr/lib/X11/app-defaults/Mwm.  A sample setting is:
  486.  
  487.   Mwm*showFeedback:  move placement resize behavior restart quit
  488.  
  489. ------------------------------
  490.  
  491. Subject:   -13- I'm running IRIX 4.0.1, and can't log in correctly.
  492.                 After logging in the screen turns blue then goes back to
  493.                 Pandora.
  494. Date: 07 May 93 00:00:01 EST
  495.  
  496. The problem is caused by an incorrect shutdown.  When you log out, xdm
  497. runs /usr/sbin/gamma and writes the current value to
  498. /etc/config/system.glGammaVal.  IRIX buffers this data in main memory
  499. in the buffer cache.  If the system is powered off right after logout,
  500. the data is not written to the file.
  501.  
  502. a) Login to your system as root, either via the network or
  503.    by taking the machine down to single-user mode.
  504.  
  505. b) enter these commands at the # prompt:
  506.  
  507.    # cd /etc/config
  508.    # cat system.glGammaVal
  509.  
  510. If the cat command returns a value of 1.7000, contact your technical
  511. support provider for additional troubleshooting.  If the command
  512. returns nothing (empty file) or "0", it means the problem can be fixed
  513. by entering the following command:
  514.  
  515.   # /bin/rm system.glGammaVal
  516.   # /bin/echo "1.7" > system.glGammaVal
  517.  
  518. Check your work:
  519.  
  520.   # cat system.glGammaVal
  521.  
  522. The command above should now return 1.7.
  523.  
  524. Your login should now be successful. If you edited the file while
  525. Pandora was running, you'll find the first login attempt will fail, but
  526. any later attempts will be successful. After the first login attempt,
  527. Pandora will read in the correct gamma value.
  528.  
  529. ------------------------------
  530.  
  531. Subject:   -14- How do I run 'xinit' manually, (not automatically from
  532.                 'xdm')?
  533. Date: 07 May 93 00:00:01 EST
  534.  
  535. Note that this change would affect all users.
  536.  
  537. 1) log in as root
  538. 2) Type:
  539.    /usr/gfx/stopgfx
  540.    chkconfig xdm off.
  541. 3) all users need to copy /usr/bin/X11/X to their home directory
  542.    (renaming the file to .xserverrc), removing the if test for
  543.    windowsystem, OR be familiar enough with xinit to have an alternate
  544.    command line.
  545. 4) transfer all startup programs from .xsession/.sgisession to .xinitrc.
  546. 5) the last program to start from .xinitrc must not exit.  When this
  547.    one exits, the session terminates.
  548.  
  549. ------------------------------
  550.  
  551. Subject:   -15- How do I start X on a remote host with no users logged
  552.                 in?
  553. Date: 07 May 93 00:00:01 EST
  554.  
  555. This example starts up an xclock on the remote system.  The easy way to
  556. test this for now is to rlogin to the system and type the commands.
  557. Once something works you can write some shell scripts and use rsh to
  558. run them:
  559.  
  560. hydra is being used to login to oscar and start graphics on oscar.
  561. oscar is displaying the pandora login when this is done:
  562.  
  563. hydra 2% rlogin oscar -l root
  564. oscar 1# /usr/gfx/stopgfx     (screen blanks)
  565. oscar 2# chkconfig windowsystem on
  566. oscar 3# setenv DISPLAY :0.0  (display on local screen)
  567. oscar 4# /usr/bin/X11/X &  (start Xsgi)
  568. oscar 5# xclock &  (clock is displayed)
  569.  
  570. To clean up:
  571.  
  572. oscar 6# /usr/gfx/stopgfx     (screen blanks)
  573. oscar 7# /usr/gfx/startgfx  (re-start pandora)
  574.  
  575. ------------------------------
  576.  
  577. Subject:   -16- What do the errors in my 'xdm-errors' file mean?
  578. Date: 07 May 93 00:00:01 EST
  579.  
  580. It depends on the error message, obviously.  Some are:
  581.  
  582.   unable to load display mode, rnid = 196614, errno = 22
  583.   Failed to unbind rn from clip, rnid = 3,errno = 22
  584.   bogus window id in rrm request type(2)
  585.  
  586. These are messages related to the communication between the rrm layer
  587. in the kernel and the X server.  The messages usually occur when a GL
  588. window is being destroyed in a sequence that the X server did not
  589. expect.  They are quite benign.
  590.  
  591. ------------------------------
  592.  
  593. Subject:   -17- How do I log into pandora without bringing up graphics?
  594. Date: 07 May 93 00:00:01 EST
  595.  
  596. In IRIX 3.3 you could specify the "NOGRAPHICS" option on the login
  597. screen.  The "NOGRAPHICS" option has been replaced with the keyword
  598. "failsafe" that is typed after the users name on the login screen.
  599. However, this command no longer brings up a "textport" window without
  600. graphics.  Instead, it now starts a single xwsh on the center of the
  601. screen with no window manager.  Example login:
  602.  
  603.   login: root failsafe
  604.  
  605. ------------------------------
  606.  
  607. Subject:   -18- How do I start and stop the graphics system?
  608. Date: 07 May 93 00:00:01 EST
  609.  
  610. Use /usr/gfx/startgfx and /usr/gfx/stopgfx.  Be aware that stopgfx will
  611. kill any active windows and log you out.  Under IRIX 3.* use
  612. /etc/gl/restartgl.
  613.  
  614. ------------------------------
  615.  
  616. Subject:   -19- How can I kill the X server without logging in or
  617.                 rebooting?
  618. Date: 22 Jan 94 00:00:01 EST
  619.  
  620. Hold down the left-Control, left-Shift, F12 and keypad slash keys.
  621. This is fondly known as the "Vulcan Death Grip".
  622.  
  623. ------------------------------
  624.  
  625. Subject:   -20- Pandora won't come up, and /usr/adm/SYSLOG says
  626.                 "helvetica font missing"
  627. Date: 07 May 93 00:00:01 EST
  628.  
  629. It appears that the subsystem, "eoe2.sw.fonts" did not get loaded.
  630. Re-ie from 'inst':
  631.  
  632. 1) type "inst" or boot the mini-root, as documented in Section 4.5
  633.    of the "IRIS Software Installation Guide"
  634. 2) keep *
  635. 3) set neweroverride on
  636. 4) install eoe2.sw.fonts
  637. 5) exit
  638.  
  639. ------------------------------
  640.  
  641. Subject:   -21- How do I restart the console?
  642. Date: 07 May 93 00:00:01 EST
  643.  
  644. Use /usr/sbin/startconsole.  In IRIX 3.*, use /etc/gl/startconsole.
  645.  
  646. ------------------------------
  647.  
  648. Subject:   -22- What are resources?
  649. Date: 07 May 93 00:00:01 EST
  650.  
  651. Basically, resources are "attributes" that control the look and feel of
  652. an application. Resources include color, fonts, size, location, and
  653. more.  Resources can have a complex format for binding strengths.
  654.  
  655. For a complete description of resources, including a description of
  656. "loose" and "tight" bindings, consult a book listed in the bibliography
  657. question.
  658.  
  659. ------------------------------
  660.  
  661. Subject:   -23- How do I set resources?
  662. Date: 07 May 93 00:00:01 EST
  663.  
  664. There are many ways to set resources. Resources may be listed in files
  665. or contained in a data base. Consult a book on X as well as the xrdb(1)
  666. manpage for detailed descriptions.  Generally speaking, if xrdb is not
  667. used, resource files are specified through environment variables.
  668. "What is a good approach to take in looking for resources?" addresses
  669. the precedence of these files and variables.
  670.  
  671. For some examples, see the file
  672. /usr/tutor/Customize/example.Xdefaults.
  673.  
  674. ------------------------------
  675.  
  676. Subject:   -24- How do I know what resources I can set for an
  677.                 application?
  678. Date: 07 May 93 00:00:01 EST
  679.  
  680. The most common place to find resource variables for a particular
  681. application is in the man page for that application.
  682.  
  683. For example, take a look at the man page for `xwsh'.  Look for the
  684. section heading called `RESOURCES'.  This section lists each resource
  685. for `xwsh', and in some cases, the valid values for that resource.
  686.  
  687. Also, many major applications are built on top of the Xt toolkit. There
  688. are standard resources that these applications recognize. For a more
  689. complete description, see one of the books on Xt listed in the
  690. bibliography.
  691.  
  692. ------------------------------
  693.  
  694. Subject:   -25- How do I run the same program twice with different
  695.                 attributes?
  696. Date: 07 May 93 00:00:01 EST
  697.  
  698. To accomplish this task, you need to take advantage of the "instance vs
  699. class" concept. This concept is explained further in most books on Xt.
  700.  
  701. Many applications have a resource that lets you to give it a unique
  702. name.  For example, from the xwsh man page :
  703.  
  704. -name instance-name
  705.       Provide a unique name for an xwsh window.  This name becomes
  706.       the instance name of the specific xwsh, with the class name
  707.       always being "XWsh".
  708.  
  709. Using the -name option allows you to give "names" to different
  710. instances of xwsh and assign different resources to each one.  So if
  711. you want two different xwsh's with different resource sets, give them
  712. two different names, say howdymom and howdydoody, for example.  Add the
  713. following to your ~/.Xdefaults file (if you use .Xdefaults) :
  714.  
  715.   howdymom*foreground:       SeaGreen
  716.   howdydoody*foreground:     SGIBeet
  717.  
  718. Now all you have to do is start them up :
  719.  
  720.   xwsh -name howdymom&
  721.   xwsh -name howdydoody&
  722.  
  723. ------------------------------
  724.  
  725. Subject:   -26- Does the GL recognize resources?
  726. Date: 07 May 93 00:00:01 EST
  727.  
  728. Yes. In IRIX 4.0 and later, the GL responds to several X resources,
  729. allowing run-time control over some aspects of GL programs.
  730.  
  731. The man page assumes you are somewhat familiar with X resources, if you
  732. are not, you should read some X documentation such as Volume 3 of the
  733. O'Reily X books.
  734.  
  735. The GL uses resources names with the prefixes
  736.  
  737.   appname.gl.                (instance prefix)
  738.   Appname.GL.                (class prefix)
  739.  
  740. where appname and Appname are derived from the argument to the GL
  741. program's first call to winopen(3G) upper case.
  742.  
  743. For complete information see the man page for GLRESOURCES.
  744.  
  745. ------------------------------
  746.  
  747. Subject:   -27- How can I emulate a Meta key using xwsh?
  748. Date: 10 Dec 93 00:00:01 EST
  749.  
  750. Shankar Unni <shankar@wpd.sgi.com> says:
  751. In order to have "Meta" keys with xwsh, you first need to set its
  752. keyboard type to "xlib" (the "raw" keyboard). Then, you need to bind
  753. all the ALT-combinations to your taste. Here is my personal
  754. app-defaults file for XWsh:
  755.  
  756. ================== cut here ======================
  757.  
  758. XWsh*keyboardType: xlib
  759.  
  760. ! This determines what characters are treated as a "word" when doing a
  761. ! double-click. I have it set so that any character that is in a file-
  762. ! name or E-mail address (!%$*+-./@) is picked up as a word char.
  763. XWsh*CharClass:33:48,36-37:48,42-43:48,45-47:48,64:48,126:48
  764.  
  765. XWsh*keyMapping2:                \
  766.     a(Alt_L): send("\033a");             \
  767.     b(Alt_L): send("\033b");             \
  768.     [etc ...]
  769.     z(Alt_L): send("\033z");             \
  770.     A(Alt_L,Shift_L): send("\033A");        \
  771.     B(Alt_L,Shift_L): send("\033B");        \
  772.     [etc ...]
  773.     Z(Alt_L,Shift_L): send("\033Z");        \
  774.     0(Alt_L): send("\0330");             \
  775.     1(Alt_L): send("\0331");             \
  776.     [etc ...]
  777.     9(Alt_L): send("\0339");             \
  778.     period(Alt_L): send("\033.");        \
  779.     underscore(Alt_L,Shift_L): send("\033_");    \
  780.     bracketleft(Alt_L): send("\033[");        \
  781.     asterisk(Alt_L,Shift_L): send("\033*");    \
  782.     numbersign(Alt_L,Shift_L): send("\033#");    \
  783.     less(Alt_L,Shift_L): send("\033<");        \
  784.     equal(Alt_L): send("\033=");        \
  785.     greater(Alt_L,Shift_L): send("\033>");    \
  786.     Escape(Alt_L): send("\033\033");        \
  787.     BackSpace(Alt_L): send("\033\010");        \
  788.     Return(Alt_L): send("\015\001");
  789.  
  790. ================== cut here ======================
  791.  
  792. ------------------------------
  793.  
  794. Subject:   -28- How do I find out what fonts are available?
  795. Date: 07 May 93 00:00:01 EST
  796.  
  797. The xfontsel and xlsfonts utilities help you find appropriate fonts.
  798. xlsfonts lists the fonts; xfontsel provides an interface for selecting
  799. a desired font. To use xfontsel, choose "Font Names" from the
  800. Customization rollover menu in the Toolchest.  Please see the man pages
  801. and the IRIS Utilities Guide for further information.
  802.  
  803. ------------------------------
  804.  
  805. Subject:   -29- Does SGI provide any tools to help with the
  806.                 customization process?
  807. Date: 07 May 93 00:00:01 EST
  808.  
  809. Yes. The Customization rollover menu in the Toolchest contains three
  810. entries: Window Info, Color Names, and Font Names.  Please refer to the
  811. man pages on these commands for details: xfontsel, xlsfonts, xwininfo,
  812. xdpyinfo, xprop, appres, listres, and xrdb.
  813.  
  814. Also, see the "WorkSpace User's Guide" and the example files in
  815. /usr/tutor/Customize.
  816.  
  817. ------------------------------
  818.  
  819. Subject:   -30- What is a good approach to take in looking for
  820.                 resources?
  821. Date: 07 May 93 00:00:01 EST
  822.  
  823. The following is a recommended list  of steps to take when searching
  824. for a resource, binding, behavior, etc.
  825.  
  826.  1) Look in the 4.0 Transition Guide.
  827.  2) Look in /usr/tutor/Customize.
  828.  3) Look in /usr/demos.
  829.  4) Look in ~4Dgifts.  (Available with the development option.)
  830.  5) If the client you are interested in is a GL client, see the
  831.     man page for GLRESOURCES.
  832.  6) Look in /usr/lib/X11/app-defaults/ClientName.
  833.  7) Look in /usr/lib/X11/system.* .
  834.  8) Look through the man page for the client you are interested in.
  835.  9) Look in O'Reilly & Associates Vol. III. It has many gems
  836.     pertaining to standard X clients.
  837. 10) Look in the documentation that came with your application.
  838. 11) Look in the OSF Motif manuals.
  839. 12) Post to comp.windows.x if you can not find
  840.     an answer using steps 1 through 11.
  841.  
  842. ------------------------------
  843.  
  844. Subject:   -31- What is the precedence for resource files?
  845. Date: 07 May 93 00:00:01 EST
  846.  
  847. The following list indicates the weight of set resources.
  848. Items at the top have the greatest weight.
  849.  
  850. 1) Hard coded values for resources.
  851. 2) Command line arguments.
  852. 3) Resources pointed to by $XENVIRONMENT.
  853. 4) Resource values loaded into the Resource Data Base via xrdb.
  854. 5) Resources pointed to by other environment variables :
  855.  
  856.    IF $XUSERFILESEARCHPATH is set
  857.  
  858.      then it contains a list of directories to search.
  859.  
  860.    ELSE IF $XAPPLRESDIR is set
  861.     
  862.      it contains a single directory, and a short list of related
  863.      directories (e.g. adjusted for language) is where resource
  864.      files must be found.
  865.     
  866.    ELSE
  867.     
  868.      Look in a short list of places related to $HOME (e.g. language
  869.      adjusted). This includes files in $HOME that have the name of the
  870.      class of the application.
  871.  
  872. 6) Resource values set in $HOME/.Xdefaults, provided that the
  873.    RESOURCE_MANAGER property hasn't been set via the xrdb command.
  874.    (see the third paragraph in the xrdb man page)
  875. 7) Values set in /usr/lib/X11/app-defaults/*.
  876. 8) Values set through through the application's fall back mechanism.
  877.  
  878. ------------------------------
  879.  
  880. Subject:   -32- What files affect the window manager and what is their
  881.                 relationship to each other?
  882. Date: 07 May 93 00:00:01 EST
  883.  
  884. 1) ~/.4Dwmrc, if you have one
  885. 2) /usr/lib/X11/system.4Dwmrc
  886. 3) /usr/bin/X11/4Dwm
  887. 4) /usr/lib/X11/app-defaults/4Dwm
  888. 5) ~/.Xdefaults (or wherever you set resources)
  889.  
  890. When 4Dwm is started, it looks for ~/.4Dwmrc. If it does not exist, it
  891. looks at /usr/lib/X11/system.4Dwmrc. The definitions for button
  892. bindings, menus, etc are contained in these files. For a better
  893. description of bindings, look in /usr/tutor/Customize/example.4Dwmrc
  894. and /usr/people/ 4Dgifts/.4Dwmrc. Also see the man pages for 4Dwm.
  895.  
  896. The resource set for the bindings will actually "choose" which binding
  897. definition is set.
  898.  
  899. ------------------------------
  900.  
  901. Subject:   -33- Do I need my own .4Dwmrc file?
  902. Date: 07 May 93 00:00:01 EST
  903.  
  904. Not necessarily. As mentioned in the previous question, actual bindings
  905. are determined by resource names. If there is a binding definition in
  906. /usr/lib/X11/system.4Dwmrc that you like, you may choose it by setting
  907. the appropriate resource.
  908.  
  909. ------------------------------
  910.  
  911. Subject:   -34- Can I run different window managers?
  912. Date: 07 May 93 00:00:01 EST
  913.  
  914. In Irix 4D1-4.0, you may choose 4Dwm, mwm, twm, or uwm. Note that GL
  915. programs are guaranteed to work only under 4Dwm.
  916.  
  917. ------------------------------
  918.  
  919. Subject:   -35- How do I choose a different window manager as the
  920.                 default?
  921. Date: 07 May 93 00:00:01 EST
  922.  
  923. You must use a .xsession file and explicitly invoke the window manager
  924. and any other applications you want to use, such as 'toolchest' and
  925. 'xwsh'.
  926.  
  927. After making this change, you may only be able to log out by using the
  928. "Log Out" selection in the toolchest, or by executing
  929. /usr/bin/X11/endsession.
  930.  
  931. Here are the contents of a sample .xsession file:
  932.  
  933.     xhost + &
  934.     toolchest -name ToolChest > /dev/console 2&>1 &
  935.     winterm -bg red &
  936.     winterm -bg blue &
  937.     mwm > /dev/console 2&>1 &
  938.     /usr/bin/X11/reaper
  939.  
  940. Note that 'reaper' is not put into the background.  When 'reaper' exits
  941. you will be logged out.
  942.  
  943. Alternatively, you can do the following steps:
  944.  
  945. 1. cp /usr/lib/X11/xdm/Xsession ~/.xsession
  946.  
  947. 2. Remove the lines in ~/.xsession that say:
  948.  
  949.    if [ -r $xsession -a "$0" != $xsession ]; then
  950.     if [ -x $xsession ]; then
  951.         exec $xsession
  952.     else
  953.         exec /bin/sh $xsession
  954.     fi
  955.    fi
  956.  
  957. 3. Change the line that says
  958.  
  959.    /usr/bin/X11/4Dwm >/dev/console 2>&1 &
  960.  
  961.    to
  962.  
  963.    /usr/bin/X11/mwm > /dev/console 2>&1 &
  964.  
  965. ------------------------------
  966.  
  967. Subject:   -36- Where can I learn more about the Window Manager
  968.                 behavior?
  969. Date: 07 May 93 00:00:01 EST
  970.  
  971. The man pages for 4Dwm and mwm contain a wealth of information on the
  972. window manager. There are also online files. You may want to read
  973. /usr/tutor/Customize/example.4Dwmrc as well as
  974. /usr/people/4Dgifts/.4Dwmrc (if you have the IDO option).  The
  975. OSF/Motif manuals listed in the bibliography are also good places to
  976. find information. (4Dwm is based on mwm).
  977.  
  978. ------------------------------
  979.  
  980. Subject:   -37- How do I recover from a failed window manager
  981.                 customization attempt?
  982. Date: 07 May 93 00:00:01 EST
  983.  
  984. If your attempt at customization leaves you in a state where buttons
  985. and menus are no longer recognized, you can recover by pressing the
  986. <Alt><CTRL><Shift><!>keys simultaneously. A menu appears that will let
  987. you choose Motif, Iris, or user defaults. Choose either Motif or Iris
  988. defaults and then push OK. This restarts the window manager to a usable
  989. state.
  990.  
  991. ------------------------------
  992.  
  993. Subject:   -38- What is the difference between .xsession and
  994.                 .sgisession?
  995. Date: 07 May 93 00:00:01 EST
  996.  
  997. The system Xsession file (/usr/lib/X11/xdm/Xsession or Xsession-remote)
  998. starts up a number of important things when you log in, eg. 4Dwm,
  999. toolchest, loads resources, sets your XUSERFILESEARCHPATH, sets your
  1000. root background, etc.
  1001.  
  1002. One of the last things it does is look in your home directory for a
  1003. .sgisession file.  This allows you to start additional programs at
  1004. login time. This is the file that you would use to start a mailbox,
  1005. additional window, a calendar, etc.
  1006.  
  1007. ADVANTAGES OF $HOME/.sgisession :
  1008.  
  1009.     1) You don't need to read through yet another system file to see
  1010.        what you need or don't need.
  1011.  
  1012.     2) You can override some of the defaults the system default has
  1013.        given you.
  1014.  
  1015. DISADVANTAGES OF $HOME/.sgisession :
  1016.  
  1017.     1) You cannot override ALL of the defaults set for you.
  1018.     
  1019.     2) Some things you can't change from a .sgisession file :
  1020.  
  1021.        A) You can't start a different window manager.
  1022.        B) You can't change the way the console starts.
  1023.        C) You can't change toolchest output redirection to
  1024.       the console.
  1025.  
  1026.     3) Users of other vendors' equipment are used to seeing a .xsession
  1027.        file.
  1028.  
  1029. After checking for a "failsafe" (ie. no graphics) login, one of the
  1030. first things that /usr/lib/X11/xdm/Xsession does is check for
  1031. $HOME/.xsession.  If it exists, Xsession will exec your .xsession
  1032. file.  This means that if you are REALLY sure you know what you are
  1033. doing, you can login with a different window manager, xterm as a
  1034. console, or xwsh not already iconified, etc.  You can also turn off the
  1035. toolchest output redirection, and start anything else you might have
  1036. done in $HOME/.sgisession. There is a discussion on xsession files in
  1037. volume 3 of the O'Reilly series.
  1038.  
  1039. This next part might be redundant
  1040.  
  1041. From the login event sequence mentioned earlier, you will note that
  1042. /usr/lib/X11/xdm/Xsession tries to exec $HOME/.xsession if it exists.
  1043. This is how you would go about changing programs started by default. An
  1044. example is the start of the window manager. There is a discussion on
  1045. xsession files in volume 3 of the O'Reilly series. For examples of
  1046. alternate xsession files look at /usr/people/4Dgifts/.xsession or
  1047. /usr/demos/.xsession.
  1048.  
  1049. If you don't have a $HOME/.xsession file, /usr/lib/X11/xdm/Xsession
  1050. starts things for you and eventually looks for $HOME/.sgisession.  This
  1051. is a good way to start additional programs without changing what is
  1052. started by default.
  1053.  
  1054. ------------------------------
  1055.  
  1056. Subject:   -39- After copying /usr/lib/X11/xdm/Xsession to .xsession, I
  1057.                 can't log in.
  1058. Date: 07 May 93 00:00:01 EST
  1059.  
  1060. After copying this file to your home directory, you need to remove all
  1061. references to "xsession". References to xsession cause the system to
  1062. try to execute $HOME/.xsession, which will create an infinite loop.
  1063.  
  1064. Remove the lines in ~/.xsession that say:
  1065.  
  1066. if [ -r $xsession -a "$0" != $xsession ]; then
  1067.        if [ -x $xsession ]; then
  1068.            exec $xsession
  1069.        else
  1070.            exec /bin/sh $xsession
  1071.        fi
  1072. fi
  1073.  
  1074. ------------------------------
  1075.  
  1076. Subject:   -40- What are the important login and resource files for IRIX
  1077.                 4D1-4.0?
  1078. Date: 07 May 93 00:00:01 EST
  1079.  
  1080. The following three file groupings indicate where files that affect
  1081. your login session reside.
  1082.  
  1083. 1) /usr/lib/X11/* - This is THE starting place. Here you find the
  1084. system default bindings for Motif, 4Dwm, and the Toolchest. The xdm
  1085. directory lives here as well as the app-defaults directory. xdm
  1086. controls the session management.Many application defaults are set in
  1087. the app-defaults directory.
  1088.  
  1089. 2) $HOME/[.Xdefaults, .4Dwmrc, .chestrc, .xsession, .sgisession] Here
  1090. you find the files that control your system set-up.  You create these
  1091. files; they don't exist when you first log in.
  1092.  
  1093. 3) /usr/bin/X11 - This is where the binaries live. It makes life nice
  1094. to include this directory in your path.
  1095.  
  1096. ------------------------------
  1097.  
  1098. Subject:   -41- What is the sequence of events that occur at login time?
  1099. Date: 10 Dec 93 00:00:01 EST
  1100.  
  1101. This synopsis of the events that occur when
  1102. you log in to the console via xdm (xdm is the default method
  1103. of logging in).
  1104.  
  1105.  1) Provide a "failsafe" (nographics) login if required/requested.
  1106.  2) Exec $HOME/.xsession if it exists. If it exists, the remaining
  1107.     steps should normally be included in the users .xsession file as
  1108.     well.
  1109.  3) Load $HOME/.Xresources if it exists.
  1110.  4) Set XUSERFILESEARCHPATH.
  1111.  5) Incorporate a "shell" environment
  1112.     into the "session". (man userenv)
  1113.  6) Set the root background and cursor.
  1114.  7) Disable display access control (xhost +).  (man xhost)
  1115.  8) Start 4Dwm.
  1116.  9) Wait for 4Dwm to come up.
  1117. 10) Start the console.
  1118. 11) Execute $HOME/.sgisession if it exists.
  1119. 12) Start WorkSpace if the user wants it.
  1120. 13) Put a Toolchest on each screen.
  1121. 14) Exec the "reaper". (man reaper / endsession)
  1122.  
  1123. ------------------------------
  1124.  
  1125. Subject:   -42- Why do 4Dwm, toolchest, Workspace, etc. not recognize an
  1126.                 environment variable I set in my shell's startup files?
  1127. Date: 06 Mar 94 00:00:01 EST
  1128.  
  1129. The script /usr/lib/X11/xdm/Xsession (or, if you have one, your own
  1130. ~/.xsession) runs when you log in and starts your window manager
  1131. (4Dwm), Workspace, etc. To give these programs a copy of the
  1132. environment you define in your shell's startup files, Xsession first
  1133. runs 'userenv', which runs your shell just to see what environment
  1134. variables your shell's startup files set and puts them into Xsession's
  1135. environment.  Later on Xsession runs 4Dwm, Workspace, etc. and they
  1136. inherit Xsession's environment including the environment variables
  1137. which 'userenv' got from your shell's startup files.
  1138.  
  1139. However, 'userenv' objects to 1) errors in your shell startup files, 2)
  1140. commands which print output to the terminal and 3) commands like 'stty'
  1141. and 'tset', which expect to be connected to a terminal.  Any of these
  1142. may cause 'userenv' to give up completely, so that Xsession, 4Dwm,
  1143. Workspace, etc. do not get any of your shell's enviroment.
  1144.  
  1145. To get 'userenv' to work, you must 1) make sure that your shell startup
  1146. files are error-free and 2) protect 'userenv' from commands which print
  1147. output or expect to be connected to a terminal by testing for the
  1148. ENVONLY environment variable before running them. (See the userenv(1)
  1149. manpage.) You might try disabling your shell startup files (or parts
  1150. thereof) one by one to narrow down which is causing the problem.  Be
  1151. sure to check both personal and system-wide shell startup files! See
  1152. your shell's manpage for a complete list.
  1153.  
  1154. Note that each terminal window (aka 'winterm', 'xwsh' or 'xterm') runs
  1155. a fresh copy of your shell, so it has a second chance to set your
  1156. environment variables. Your shell is now connected to a terminal and
  1157. 'userenv' isn't involved, so none of the above problems apply. The
  1158. environment in a terminal window will appear correct, and programs
  1159. started from a window (e.g. by typing 'workspace' to start Workspace)
  1160. will inherit the environment properly.  Furthermore, 'userenv' often
  1161. appears to work when run inside a terminal window, even when it does
  1162. not work when run from Xsession.  This is all fine, but it doesn't help
  1163. when you log in. One right way to see if 'userenv' is working when it
  1164. should is to add the line 'env > $HOME/test-userenv' to Xsession after
  1165. the line that runs 'userenv', log in and examine the file it creates.
  1166.  
  1167. ------------------------------
  1168.  
  1169. Subject:   -43- Why doesn't the window manager's "Log Out" routine work?
  1170. Date: 09 Jan 94 00:00:01 CST
  1171.  
  1172. "Log Out" runs 'endsession', which under some versions of IRIX 4.0.5
  1173. does not work if your hostname contains a number. Fortunately, 'endsession'
  1174. is a script, and you can fix it by changing the line
  1175.  
  1176.     PROP_DISPLAY=`expr $DISPLAY : '\(.*\).[1-9]' \| $DISPLAY`
  1177.  
  1178. to
  1179.  
  1180.     PROP_DISPLAY=`expr $DISPLAY : '\(.*\)\.[1-9]' \| $DISPLAY`
  1181.  
  1182. i.e. just add a backslash before the second period.
  1183.  
  1184. ------------------------------
  1185.  
  1186. Subject:   -44- Where is the default value of PATH set?
  1187. Date: 10 Dec 93 00:00:01 EST
  1188.  
  1189. Every program which allows a user to log in (telnet, rlogin, pandora,
  1190. etc.) can specify PATH. Shells may as well if it isn't already set.
  1191. There are many slightly different default values, and relying on them
  1192. is a good way to get confused. The only reliable method is to set PATH
  1193. in your shell's startup files. These are different for each shell, and
  1194. are described in each shell's manpage. Beware of 'ksh', which has an
  1195. internal, invisible default path ('/bin:/usr/bin') which it uses when
  1196. PATH is not set.
  1197.  
  1198. ------------------------------
  1199.  
  1200. Subject:   -45- How can I convert RGB bitmaps to & from other formats?
  1201. Date: 22 Feb 94 00:00:01 EST
  1202.  
  1203. Several bitmap conversion tools are shipped with IRIX.  The executables
  1204. are part of the eoe2.sw.imagetools subsystem, and include:
  1205.  
  1206. fromalias - convert an Alias image to an IRIS image
  1207. frombin - create an RGB IRIS image file from a binary dump of image data
  1208. fromcmap - convert a color map into an image with one scanline
  1209. fromcube - convert a Cubicomp/Vertigo image file to IRIS format
  1210. fromdi - convert an old .di dithered image into an IRIS image
  1211. fromface - convert a UNIX faceserver image into an IRIS image
  1212. fromgif - convert a GIF image into an IRIS image
  1213. frommac - convert a MacPaint image into an IRIS image
  1214. frompic - convert a MOVIE BYU .PIC image to an IRIS image
  1215. fromppm - convert an image in Jef Poskanzer's format into an IRIS image
  1216. fromrla - convert a Wavefront image to an IRIS image
  1217. fromsun - convert a sun image into an IRIS image
  1218. fromtarga - convert a targa image into an IRIS image
  1219. fromxbm - convert an X Bitmap image into an IRIS image
  1220. fromxud - convert an xwd file into an IRIS image
  1221. fromxwd - convert an xwd file into an IRIS image
  1222. fromyuv - convert an Abekas yuv image into an IRIS image
  1223. toalias - convert an IRIS image to an Alias image
  1224. toascii - convert an IRIS image to text characters
  1225. tobin - convert an IRIS image to binary dump of pixel data
  1226. tobw - convert an IRIS image to black and white
  1227. togif - convert an IRIS image to a Compuserve GIF image
  1228. tomac - convert an IRIS image to MacPaint format
  1229. tonews - convert an IRIS image into NeWS format
  1230. topict - convert an IRIS image to Macintosh PICT format
  1231. toppm - convert an IRIS image file into Jef Poskanzer's ppm image format
  1232. tops - convert an IRIS image to PostScript
  1233. toscitex - Convert IRIS images into Scitex CT2T images
  1234. tosun - convert an IRIS image to a sun raster file
  1235. totarga - convert an IRIS image to a type 2 targa image
  1236. toyuv - convert an IRIS image to yuv format
  1237.  
  1238. The source for each of these tools is shipped in the 4Dgifts
  1239. dev.dev_sw.giftsfull package and placed in the directory
  1240. /usr/people/4Dgifts/iristools/imgtools.  Each also has a man page.
  1241.  
  1242. Similar tools for more formats (frompict, frompixar, fromtiff,
  1243. fromutah, totiff, toutah and toxbm at last count), as well as some of
  1244. the ones that come with IRIX and a few miscellaneous cool image editing
  1245. tools, are in ftp.sgi.com:/graphics/bin/. 'fromjpeg' and 'tojpeg' can
  1246. be found in explorer.dgp.toronto.edu:/pub/sgi/sgijpeg/.
  1247. swedishchef.lerc.nasa.gov:/ has 'fromvicar' in /image/conversion/from/,
  1248. 'tocolps' and 'topcl' in /image/conversion/to/ and many other image-
  1249. related tools in nearby directories.
  1250.  
  1251. Finally, 'imgworks' (in the imgtools.sw.tools subsystem) understands
  1252. RGB, TIFF and FIT formats, and several freeware programs including
  1253. SDSC's 'imtools' (in swedishchef.lerc.nasa.gov:/image/conversion/),
  1254. 'xv' (in ftp.cis.upenn.edu:/pub/xv/) and ImageMagick (in
  1255. ftp.x.org:/contrib/) work on SGIs and understand SGI's RGB format as
  1256. well as many other formats.
  1257.  
  1258. ------------------------------
  1259.  
  1260. Subject:   -46- Can I compress RGB bitmaps?
  1261. Date: 07 May 93 00:00:01 EST
  1262.  
  1263. Yes.  Use /usr/sbin/rle, which is part of eoe2.sw.imagetools.
  1264.  
  1265. ------------------------------
  1266.  
  1267. Subject:   -47- How do I make a screen dump?
  1268. Date: 27 Jan 94 00:00:01 EST
  1269.  
  1270. Use the utilities 'snapshot', 'scrsave' or 'imgsnap'. All have
  1271. manpages.  'snapshot' and 'scrsave' are in the eoe2.sw.gltools
  1272. subsystem, 'imgsnap' is in the imgtools.sw.tools subsystem and their
  1273. manpages are in the respective *.man.* subsystems.
  1274.  
  1275. From within a GL program, you should call readdisplay().  For an
  1276. example look at ~4Dgifts/iristools/imgtools/scrsave.c.
  1277.  
  1278. ------------------------------
  1279.  
  1280. Subjectse 4Dgifts code in my application?
  1281. Date: 07 May 93 00:00:01 EST
  1282.  
  1283. Yes.  The 4Dgifts are a "gift" and developers are welcome to use the
  1284. code.  However, SGI does not support the code in 4Dgifts.  Note that
  1285. certain restrictions apply.  Please read the copyright statement in
  1286. ~4Dgifts/README.Copyright.
  1287.  
  1288. ------------------------------
  1289.  
  1290. Subject:   -49- What does ERR_WMANIPC mean?
  1291. Date: 07 May 93 00:00:01 EST
  1292.  
  1293. The "WMAN" in that message means "window manager."  However, this 
  1294. no longer means "window manager" such as 4Dwm, but rather the entire 
  1295. X Window system.  The error means that the GL program triggered a
  1296. fatal X error.
  1297.  
  1298. A GL program can get an X error, because all GL programs are actually X
  1299. clients.  When a GL program does a winopen(), libgl actually calls
  1300. XCreateWindow, etc.)
  1301.  
  1302. When a GL program gets an X error, libgl prints out these X errors
  1303. using this error message:
  1304.  
  1305.     GL: X request = maj.min,  error code = ercode
  1306.  
  1307. where
  1308.  
  1309.     maj = major request code that caused the error
  1310.     min = minor request code
  1311.     ercode = X error code
  1312.  
  1313. This turns out to be easy to interpret, so long as the request was a
  1314. core X protocol request (e.g., a CreateWindow request).  In that case:
  1315.  
  1316.     1. You can look up the major code in /usr/include/X11/Xproto.h.
  1317.     2. The minor code is not used.
  1318.     3. The X error code can be found in /usr/include/X11/X.h.
  1319.  
  1320. As you can see in Xproto.h, the core X protocol requests have request
  1321. codes <= 127.
  1322.  
  1323. However, if maj > 127, then the request is an X extension request.
  1324. Unfortunately, it can be difficult to interpret this unless you built
  1325. your program with a debugging libgl.a (compiled with -g).  The reason
  1326. is that for an X extension, the major request code and the starting
  1327. error code are copied from the X server during client startup, and
  1328. these codes are saved in variables inside libgl.  With a debugging
  1329. libgl, these variables can be printed out from within a debugger, such
  1330. as dbx.
  1331.  
  1332. If the major code indicates an X Input extension request, then the
  1333. minor numbers then tell the X input request type, and these are found
  1334. in /usr/include/X11/extensions/XIproto.h.
  1335.  
  1336. Finally, the X Input Extension uses 132 as its "starting error code."
  1337. The possible errors are found in /usr/include/X11/extensions/XI.h,
  1338. where they're defined like this:
  1339.  
  1340.     #define XI_BadDevice   0
  1341.     #define XI_BadEvent    1
  1342.     #define XI_BadMode     2
  1343.     #define XI_DeviceBusy  3
  1344.     #define XI_BadClass    4
  1345.  
  1346. If you add 132 to these numbers, you get the error that's reported by
  1347. the libgl error message.
  1348.  
  1349. ------------------------------
  1350.  
  1351. Subject:   -50- How can I translate screen (x,y) coords into world
  1352.                 (x,y,z) coords?
  1353. Date: 07 May 93 00:00:01 EST
  1354.  
  1355. Check the manual page for mapw(3G) or mapw2(3G).  mapw() returns a line
  1356. into (x,y,z) space.
  1357.  
  1358. ------------------------------
  1359.  
  1360. Subject:   -51- How can I translate world (x,y,z) coords into screen
  1361.                 (x,y) coords?
  1362. Date: 07 May 93 00:00:01 EST
  1363.  
  1364. There are two methods.  The first method is detailed in
  1365. ~4Dgifts/examples/grafix/world2scrn.c, which is part of the
  1366. dev.dev_sw.giftsfull package.  It multiplies the (x,y,z) vector into
  1367. the current modeling and projection matrixes, and uses the result to
  1368. interpolate based on the window size and position.
  1369.  
  1370. The second method uses the current cursor position as a trick and is
  1371. much simpler.  Use cmov() to set the cursor position to the point of
  1372. interest in world space, then call getcpos() to return the cursor
  1373. position in screen coordinates.  Note that if your entire viewport is
  1374. off-screen, the results are undefined and you'll have to use the first
  1375. method.
  1376.  
  1377.     float x,y,z;
  1378.     short x1, y1;
  1379.     
  1380.     cmov (x,y,z);
  1381.     getcpos (&x1, &y1);
  1382.  
  1383. ------------------------------
  1384.  
  1385. Subject:   -52- I call mapcolor(index, R, G, B) but nothing happens.
  1386.                 Why?
  1387. Date: 07 May 93 00:00:01 EST
  1388.  
  1389. You either need to call glcompat(GLC_SLOWMAPCOLORS, TRUE) at the
  1390. beginning of your program, or call gflush() after calling mapcolor.
  1391.  
  1392. See the NOTES section in "man mapcolors" and also "man glcompat" for
  1393. further info. (This may also be in the GL release notes)
  1394.  
  1395. ------------------------------
  1396.  
  1397. Subject:   -53- What's wrong with blink()?
  1398. Date: 10 Jun 93 00:00:01 EST
  1399.  
  1400. - blink() is broken all the way up through 4.0.5F, where blink() only
  1401.   blinks to black.
  1402.  
  1403. - you can work-around this blink() problem by doing the following:
  1404.  
  1405.     blink(rate, index, red<<8, green<<8, blue<<8)
  1406.  
  1407. - ~4Dgifts/examples/glpg/ch04/blinker.c has three main problems:
  1408.  
  1409.     - it doesn't do the above work-around.
  1410.     - it doesn't do a gflush after mapping colors.
  1411.     - it doesn't turn blinking off initially.
  1412.  
  1413. - what happens is that if a program starts anything blinking and exits
  1414.   without ever turning blinking off with blink(-1, 0, 0, 0, 0) then the
  1415.   next program to attempt blinking will not be able to blink.  this
  1416.   happens if for instance you close the blinker window before its 10
  1417.   second sleep() has completed.
  1418.  
  1419. - a simple idea for a work-around for this problem: programs which do
  1420.   blinking should turn their blinking on when they have focus; they
  1421.   should turn all blinking off when they lose focus.  This is not
  1422.   perfect but is a plausible attempt at sharing the 20 blinking
  1423.   system-wide colormap entries.
  1424.  
  1425. Here is a copy of ~4Dgifts/examples/glpg/ch04/blinker.c that contains
  1426. the above workarounds, except for input-focus:
  1427.  
  1428. #include <gl/gl.h>
  1429.  
  1430. #define MAXBLINKS       20    /* maximum number of blinking entries */
  1431. #define FIRSTBLINKCI    64    /* avoid the first 64 colors */
  1432.  
  1433. main()
  1434. {
  1435.     int i;
  1436.  
  1437.     prefsize(400, 400);
  1438.     winopen("blinker");
  1439.     ortho2(-0.5, 20.0*MAXBLINKS + 9.5, -0.5, 500.5);
  1440.     color(BLACK);
  1441.     clear();
  1442.  
  1443.     /* always turn blinking off before calling 'blink' */
  1444.     blink (-1, 0, 0, 0, 0);
  1445.  
  1446.     for (i = MAXBLINKS - 1; i >= 0 ; i--) {
  1447.     mapcolor(i + FIRSTBLINKCI, 255, 255, 255);
  1448.     /* always call gflush() after mapcolors() */
  1449.     gflush();
  1450.     color(i + FIRSTBLINKCI);
  1451.     sboxfi(i*20 + 10, 10, i*20 + 20, 490);
  1452.     /* GL bug in blink -- must left-shift r,g,b values */
  1453.     blink(i + 1, i + FIRSTBLINKCI, 255 << 8, 0 << 8, 0 << 8);
  1454.     }
  1455.     sleep(10);
  1456.     blink(-1, 0, 0, 0, 0);      /* stop all blinking */
  1457.     gexit();
  1458.     return 0;
  1459. }
  1460.  
  1461. ------------------------------
  1462.  
  1463. Subject:   -54- When I try to run UIM/X uxserverd, I get an error
  1464.                 message saying, "license file has been modified, cannot
  1465.                 start the UIM/X license server".
  1466. Date: 07 May 93 00:00:01 EST
  1467.  
  1468. You probably have been given a bad key.  The most frequent causes of
  1469. incorrect keys have been incorrect capitalization and incorrect IP
  1470. addresses.
  1471.  
  1472. The program that generates the UIM/X key requires that the "host ID"
  1473. (or IP address) be in hexadecimal format.  If you feed it the standard
  1474. form of IP address (i.e., 123.45.678.90) it will generate the wrong key
  1475. and will not complain.
  1476.  
  1477. To ensure that you are is giving the correct information when
  1478. requesting a UIM/X key, please do the following:
  1479.  
  1480. Hostname:  Type in 'hostname' at the prompt, and be sure to say exactly
  1481. what it says (including capitalization, if any).
  1482.  
  1483. Host ID:  Type in 'hostid' at the prompt, and be sure to say exactly
  1484. what it says.  You will be reading back a series of numbers of the form
  1485. 0xc030c844.  The leading 0x indicates that the following number is
  1486. hexadecimal.
  1487.  
  1488. The key generating script is highly sensitive to capital letters.  Make
  1489. sure you confirm the case of the letters, both when getting the
  1490. hostname/hostid and when having your key read back to you.
  1491.  
  1492. If this still doesn't fix the problem, you may have mixed files between
  1493. UIM/X 1.0 and 2.0.  Completely remove UIM/X, re-install it, and
  1494. reproduce a Uimx2_0.license file with the correct information.
  1495.  
  1496. ------------------------------
  1497.  
  1498. Subject:   -55- What is a GL widget?
  1499. Date: 10 Jun 93 00:00:01 EST
  1500.  
  1501. GL widget refers to the GlxDraw (generic) and GlxMDraw (Motif) widgets
  1502. that allow you to embed GL windows in Xt-based programs.  To embed a GL
  1503. windows in X-based programs is frequently called "Mixed-model" or "GLX"
  1504. programming.
  1505.  
  1506. There are several examples of mixed-model programming in the directory
  1507. /usr/people/4Dgifts/examples/GLX.
  1508.  
  1509. ------------------------------
  1510.  
  1511. Subject:   -56- I'm using the GlxMDraw widget and it doesn't seem that
  1512.                 colors are being installed correctly.  Overlays in the
  1513.                 GlxMDraw widget are displayed in red and gray instead of
  1514.                 the colors I specify.  What is the problem?
  1515. Date: 10 Jun 93 00:00:01 EST
  1516.  
  1517. The window manager must be directed to install all appropriate
  1518. colormaps.  Use the XSetWMColormapWindows() call to do this -- list one
  1519. window for each colormap to be installed plus the top level window.  If
  1520. using overlays, include the overlay window as well as the normal GL
  1521. window.
  1522.  
  1523. If your window is TrueColor, you should still install the appropriate
  1524. colormap, as Indigo TrueColor is simulated using a colormap.
  1525.  
  1526. ------------------------------
  1527.  
  1528. Subject:   -57- I get a "Broken Pipe" error when I close the window of
  1529.                 an X client, such as xman or xterm.  What does this
  1530.                 error mean?  Is there something wrong with my system?
  1531. Date: 10 Jun 93 00:00:01 EST
  1532.  
  1533. Typically the error message resembles the following:
  1534.  
  1535. XIO: fatal IO error 32 (Broken pipe) on X server ":0.0" after 214
  1536. requests (214 known processed) with 0 events remaining.  The connection
  1537. was probably broken by a server shutdown or KillClient.
  1538.  
  1539. The Window Manager is reporting that the pipe for your X client has
  1540. been broken.  This is normal when an X client exits.  There is nothing
  1541. wrong with your system. This message will also occur when the system is
  1542. shut down.  This is not an error condition and no core files are
  1543. produced.
  1544.  
  1545. ------------------------------
  1546.  
  1547. Subject:   -58- Is there a way to switch on the fly between single and
  1548.                 double buffering within a GL widget?
  1549. Date: 10 Jun 93 00:00:01 EST
  1550.  
  1551. There is no way to switch between single and double buffered mode
  1552. within the same window. (In X, this would mean changing the depth,
  1553. which is not allowed.)
  1554.  
  1555. To simulate this, you can create two GL widgets: a double buffered GL
  1556. widget and a single buffered GL widget.  When it is time to change the
  1557. buffering mode, restack the windows so that the appropriate one is on
  1558. top. If the two windows are created with a common parent, they move
  1559. together when the parent is moved.
  1560.  
  1561. For non-mixed mode applications, the GL performs this switching when
  1562. you call gconfig().
  1563.  
  1564. ------------------------------
  1565.  
  1566. Subject:   -59- Why doesn't SGI's xlock lock my screen?
  1567. Date: 10 Jun 93 00:00:01 EST
  1568.  
  1569. If you or the super-user do not have a password, xlock will not lock.
  1570. Also, in IRIX 4.x, xlock is set up by default to act as if invoked with
  1571. the "-nolock" option, which tells it not to lock the screen.  If you
  1572. want force xlock to lock, do either of the following:
  1573.  
  1574. a) Use the "+nolock" option when invoking xlock.  This means
  1575.    "not nolock" (the opposite of "-nolock").  For example:
  1576.  
  1577.    % xlock +nolock
  1578.  
  1579. b) Add the following line to your ~/.Xdefaults file:
  1580.  
  1581.    XLock.nolock:    False
  1582.  
  1583. In IRIX 5.x, the default behavior of xlock has been reversed, so xlock
  1584. does indeed lock by default.  If you wish to keep the IRIX 4.x
  1585. behavior, invoke xlock with the -nolock option.
  1586.  
  1587. ------------------------------
  1588.  
  1589. Subject:   -60- What about Inventor?
  1590. Date: 10 Dec 93 00:00:01 EST
  1591.  
  1592. Gavin Bell <gavin@sgi.com> maintains an Inventor FAQ. It is archived at
  1593. viz.tamu.edu:/pub/sgi/faq/inventor.
  1594.  
  1595. Miscellaneous Inventor goodies can be found at
  1596. ftp.sgi.com:/sgi/inventor/.  These include a performance guide in
  1597. doc.tar.Z and the release notes for Inventor 2.0 (aka Open Inventor) in
  1598. relnotes.2.0.tar.Z.
  1599.  
  1600. ------------------------------
  1601.  
  1602. Subject:   -61- Why do I get compilation errors when compiling the
  1603.                 Inventor C++ examples, using C++ 3.0?
  1604. Date: 10 Jun 93 00:00:01 EST
  1605.  
  1606. Inventor 1.0 and 1.0.1 were built using the 2.1.1 version of the C++
  1607. compiler.  If you are using C++ 3.0, you must add the "-v2" switch to
  1608. the Makefile's LC++OPTS line.  It would then look like the following:
  1609.  
  1610. # Options to C++; see the CC manual page for what they do LC++OPTS =
  1611. -v2 +p -Wf,-XNp10000
  1612.  
  1613. ------------------------------
  1614.  
  1615. Subject:   -62- Why does the X server sometimes abort when I log out in
  1616.                 IRIX 5.0.1 and IRIX 5.1?
  1617. Date: 01 Oct 93 00:00:01 EST
  1618.  
  1619. BACKGROUND:  Both problems are related to resetting of the X server.
  1620. Normally the X server process is spawned by xdm (the X Display
  1621. Manger).  The X server process continues to run after every login and
  1622. logout of the graphics head; the server simply resets to its initial
  1623. state every time someone logs out.  In X server terminology, the X
  1624. server goes through multiple generations.
  1625.  
  1626. PROBLEM 1:  The dynamically loadable Display PostScript extension has a
  1627. bug where it does not properly reset the X server state on server reset
  1628. (ie, generations other than the first).
  1629.  
  1630. The problem only occurs if you have dps_eoe.sw.xserver_ext (which
  1631. contains /usr/lib/X11/dyDDX/xdps.so which is the dynamically loadable
  1632. Display PostScript extension).  dps_eoe is installed by default.
  1633.  
  1634. This problem affects all CPUs and graphics hardware.
  1635.  
  1636. PROBLEM 2:  If the user logs out while any GL-based application (such
  1637. as buttonfly, WorkSpace, jot, etc) is running, the server will not
  1638. reset.
  1639.  
  1640. Typically you will find errors in /usr/adm/SYSLOG similar to the
  1641. following:
  1642.  
  1643.     date host xdm[pid]: IO Error in XOpenDisplay
  1644.     date host xdm[pid]: Display :0 cannot be opened
  1645.     date host xdm[pid]: Display :0 is being disabled
  1646.     date host xdm[pid]: Rescanning both config and servers files
  1647.  
  1648. WORKAROUND:  As root, edit /usr/lib/X11/xdm/xdm-config and change the
  1649. line
  1650.  
  1651.     DisplayManager._0.terminateServer:      False
  1652.  
  1653. to
  1654.  
  1655.     DisplayManager._0.terminateServer:      True
  1656.  
  1657. (Please note that the contents of xdm-config are case-sensitive.)
  1658. Then restart the window system (/usr/gfx/stopgfx; /usr/gfx/startgfx)
  1659.  
  1660. If the above workaround doesn't work, try setting
  1661.  
  1662.     DisplayManager._0.startAttempts:        1
  1663.  
  1664. to
  1665.  
  1666.     DisplayManager._0.startAttempts:        4
  1667.  
  1668. This change forces xdm to try to start the X server up to four times,
  1669. if the first three fail.
  1670.  
  1671. ------------------------------
  1672.  
  1673. End of sgi/faq/graphics Digest
  1674. ******************************
  1675. -- 
  1676. The SGI FAQ group                                sgi-faq@viz.tamu.edu
  1677. Finger us for info on the SGI FAQs, or look in viz.tamu.edu:/pub/sgi.
  1678.